package com.nation.serviceImpl;

import com.nation.dao.SocietyDao;
import com.nation.domain.VSocialAndCondition;
import com.nation.service.SocietyService;
import com.sun.xml.internal.ws.api.server.SDDocument;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/3.
 */
@Service
public class SocietyServiceImpl implements SocietyService{
    @Autowired
    private SocietyDao SocietyDao;
    @Override
    public List<VSocialAndCondition> findAll() {
        return SocietyDao.findAll();
    }

    @Override
    public VSocialAndCondition findByCountryCode(String country_code) {
        return SocietyDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean update(VSocialAndCondition vSocialAndCondition) {
        return SocietyDao.update(vSocialAndCondition);
    }

    @Override
    public List<VSocialAndCondition> findByLimit(Map<String, Object> map) {
        return SocietyDao.findByLimit(map);
    }

    @Override
    public Boolean insert(VSocialAndCondition vSocialAndCondition) {
        return SocietyDao.insert(vSocialAndCondition);
    }

    @Override
    public List<VSocialAndCondition> findByCondition(Map<String, Object> map) {
        return SocietyDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return SocietyDao.delete(pk);
    }
}
